from pydantic import BaseModel, Field


class UserLogin(BaseModel):
    username: str = Field(example="tom", min_length=3)
    password: str = Field(example="123", min_length=6)


class AddUser(BaseModel):
    username: str = Field(example="tom", min_length=3)
    password: str = Field(example="123", min_length=6)
    email: str = Field(default="", example="tom@gmail.com")
    status: int = Field(default=1, example=1)


class DelecteUser(BaseModel):
    user_id: int = Field(example=1)
